namespace PersistenceObject.Framework
{
    using System;
    using System.Data;

    [AttributeUsage(AttributeTargets.Property)]
    public class DataFieldAttribute : BaseFieldAttribute
    {
        public DataFieldAttribute(string columnName) : base(columnName)
        {
            this.dbType = DbType.String;
        }

        public int Size
        {
            get
            {
                return this.size;
            }
            set
            {
                this.size = value;
            }
        }

        public DbType Type
        {
            get
            {
                return this.dbType;
            }
            set
            {
                this.dbType = value;
            }
        }

        private DbType dbType;
        private int size;
    }
}

